package com.lqtech.lqmusic.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class
UserCreateRequest {

    //用户名
    @NotBlank(message = "用户名不能为空")
    @Size(min = 4, max = 64, message = "用户名长度应该在4-64个字符之间")
    private String username;

    //密码
    @NotBlank(message = "密码不能为空")
    @Size(min = 4, max = 64, message = "密码长度应该在4-64个字符之间")
    private String password;

    //用户名称
    private String nickname;

    //性别
    private String gender;
}
